﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AngleExpress.service
{
    public abstract class MyHttpResult
    {
        public string errMsg;
    }

    class LoginParam
    {
        public string username { get; set; }
        public string password { get; set; }
    }

    public class LoginResult: MyHttpResult
    {
        public int code;
        public UserData data;
        public string msg;
    }

    public class UserData
    {
        public UserInfo userInfo;
        public string token;
    }

    public class UserInfo
    {
        public string id;
        public string loginName;
        public string name;
        public string mobile;
        public float account;
        public string nameStr;
        public string platformFilter;
        public int day;
    }

    public class SystemInfoResult: MyHttpResult
    {
        public int code;
        public string data;
    }


    public class CustomerInfo
    {
        public string companyName;
        public string mobile;
        public string id;
        public string name;
        public AppInfo[] sysList;
        public WebInfo[] webList;
    }

    public class AppInfo
    {
        public string sysName;
        public string loginName;
        public string password;
        public string sysIcon;
        public string flag;
        public string sysId; //系统软件id
        public string number;//站点名
    }

    public class WebInfo
    {
        public string sysName;
        public string loginName;
        public string password;
        public string sysIcon;
        public string flag;
        public string sysId; //系统软件id
        public string number;//站点名
    }

    public class PostUseRecordResult : MyHttpResult
    {
        public int code;
        public string data;
    }

    public class NotifyMsgResult : MyHttpResult
    {
        public int code;
        public NotifyInfo[] data;
    }

    public class NotifyInfo
    {
        public string id;
        public Notify oaNotify;
    }

    public class Notify
    {
        public string createDate;
        public string title;
        public string content;
    }

    public class UpdateNotifyStatusResult : MyHttpResult
    {
        public int code;
        public string data;
    }
}
